#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPushButton>
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    void handleClick();
    void handleClick1();
    void handleClick2();
    void handleClick3();
    ~Widget();

//如果点击后对话框标题未改变需要加入private slots:
private slots:
    void on_pushButton_clicked();
    void handlemysignal(const QString&text);
    void on_pushButton_2_clicked();

signals:
    void mySignal(const QString& text,const QString&);

private:
    Ui::Widget *ui;
    QPushButton* myButton=new QPushButton("初始按钮", this);
};
#endif // WIDGET_H
